<?php
try{
	if($id = $_GET['id'])
	{
		require_once dirname(__FILE__).'/../init.php';
		$ywoperate = new Ywoperate();
		$ywoperate->islogin();
		if($ywoperate->del($id))
		{
			echo '<div style="text-align:center;">删除成功！<a href="ywoperatelist.php">返回运维操作列表</a></div>';
			header("refresh:1;url=ywoperatelist.php");
		}
		else
		{
			echo '<div style="text-align:center;">删除失败！<a href="ywoperatelist.php">返回运维操作列表</a></div>';
			header("refresh:1;url=ywoperatelist.php");
		}
	}
	else 
	{
		echo 'id获取异常！';
	}
}catch(Exception $e)
{
    echo '<center><h1><font color="red">程序出错了，请查看日志！</font></h1></center>';
    Debug::writeLogs($e->getMessage()) ;
}
	
?>